package com.weishi.project.training.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weishi.project.api.vo.SportsmanMatchVo;
import com.weishi.project.training.domain.Sportsman;
import com.weishi.project.training.domain.SportsmanMatch;

/**
 * sportsmanMatchMapper接口
 */
public interface SportsmanMatchMapper extends BaseMapper<SportsmanMatch> {

    /**
     * 查询sportsmanMatch列表
     */
    List<SportsmanMatch> selectSportsmanMatchList(SportsmanMatch sportsmanMatch);

    /**
     * 查询运动员姓名集合
     * @return List<String>
     */
    List<Sportsman> querySportsNameList();

    SportsmanMatch getSportsmanMatchById(int id);

    void updateSportsmanMatchById(SportsmanMatch sportsmanMatch);

    /**
     * 根据sportsmanId查询姓名
     * @param sportsmanId
     * @return
     */
    String queryBySprotsmanId(int sportsmanId);

}